home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Languguage OS 2
/
Languguage OS II Version 10-94 (Knowledge Media)(1994).ISO
/
a_utils
/
perl
/
msds-prl
/
bcdsprl4.zoo
/
makefile
< prev
next >
Wrap
Makefile
|
1991-12-26
|
2KB
|
87 lines
#
# Makefile for compiling Perl under MS-DOS
#
# Needs a Unix compatible make.
# This makefile works for an initial compilation. It does not
# include all dependencies and thus is unsuitable for serious
# development work. But who would do serious development under
# MS-DOS?
#
# By Diomidis Spinellis, March 1990
#
.AUTODEPEND
CC = bcc +BCC.CFG
YACC=bison
AS = tasm
LD = tlink
MODEL = -ml
# Paths for RCS files
.PATH.c%v = ./rcs
.PATH.h%v = ./rcs
# Rules to create files from RCS database
.c%v.c:
co {$&.c }
.h%v.h:
co {$&.h }
.c.obj:
$(CC) -c -Yo {$&.c }
# Object files
OBJ = perly.obj array.obj cmd.obj cons.obj consarg.obj doarg.obj \
doio.obj dolist.obj dump.obj eval.obj form.obj hash.obj regcomp.obj \
regexec.obj stab.obj str.obj toke.obj util.obj msdos.obj popen.obj \
directory.obj usersub.obj usage.obj chdir.obj doslocal.obj dos_usub.obj
# Files in the MS-DOS distribution
DOSFILES=config.h dir.h director.c glob.c makefile msdos.c popen.c readme.msd \
changes.dds wishlist.dds patches manifest
# Deliverables
# all: perl.exe glob.exe
perl.exe: bcc.cfg $(OBJ) perl.obj
$(CC) $(CCFLAGS) -Y -eperl perl.obj -Yo @perl.tl
glob.exe: glob.c
$(CC) $(CCFLAGS) -eglob glob.c
perl.obj: perl.c
$(CC) $(CCFLAGS) -c -Y perl.c
perly.obj: perly.y
$(YACC) -d perly.y
rm -f perly.h perly.c
mv perly_ta.h perly.h
mv perly_ta.c perly.c
$(CC) $(CCFLAGS) -c -Yo perly.c
# *Compiler Configuration File*
bcc.cfg: makefile
cp &&|
-DMSDOS
-DSTANDARD_C
-ml
-O
-Obeglmptv
-Z
-f
-v
-y
-M
-II:\BORLANDC\INCLUDE
-LI:\BORLANDC\LIB
| bcc.cfg